all:	main

main: FieldEvent.o FieldSurface.o FieldEntity.o FieldAnimation.o main.o
	g++ main.o Field.o FieldSurface.o FieldEvent.o -o main -lSDL

main.o: main.cpp
	g++ -c main.cpp

FieldEvent.o: FieldEvent.cpp FieldEvent.h Field.o
	g++ -c FieldEvent.cpp

Field.o: Field.h Field.cpp
	g++ -c Field.cpp

FieldSurface.o: FieldSurface.h FieldSurface.cpp
	g++ -c FieldSurface.cpp

FieldEntity.o: FieldEntity.h FieldEntity.cpp
	g++ -c FieldEntity.cpp

FieldAnimation.o: FieldAnimation.h FieldAnimation.cpp
	g++ -c FieldAnimation.cpp

clean:
	rm main *.o *~
